package org.example.domain;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 */
@TableName("sys_user")
@Setter
@Getter
public class UserDO {
    @TableId(value = "user_id",type = IdType.ASSIGN_ID) //设置主键策略（雪花id）
    private Long userId;

    private String username;

    private String name;

    private String password;

    private String orgCode;

    private String deptId;

    private String email;

    private String mobile;
    @TableLogic()
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    private String userIdCreate;
    @TableField(fill = FieldFill.INSERT)
    private String gmtCreate;
    @TableField(fill = FieldFill.UPDATE)
    private String gmtModified;

    private Long sex;

    private Date birth;

    private Long picId;

    private String liveAddress;

    private String hobby;

    private String province;

    private String city;

    private String district;

    private String isAdmin;

    private String userType;

    private String validateCode;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String lastTime;

    private String concurrentDeptId;
    @Version
    private Integer version;





    @Override
    public String toString() {
        return "SysUserDO{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", orgCode='" + orgCode + '\'' +
                ", deptId='" + deptId + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", status=" + status +
                ", userIdCreate='" + userIdCreate + '\'' +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                ", sex=" + sex +
                ", birth=" + birth +
                ", picId=" + picId +
                ", liveAddress='" + liveAddress + '\'' +
                ", hobby='" + hobby + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", isAdmin='" + isAdmin + '\'' +
                ", userType='" + userType + '\'' +
                ", validateCode='" + validateCode + '\'' +
                ", lastTime='" + lastTime + '\'' +
                ", concurrentDeptId='" + concurrentDeptId + '\'' +
                '}';
    }
}
